<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>

<body>
  <input type="text"> <button>搜索</button>
  <script src="./jquery-3.4.1.min.js"></script>
  <script>
    $.ajax({
      url: "https://route.showapi.com/9-2",
      type: "post",
      dataType: "json",
      data: {
        showapi_appid: "455594",
        showapi_sign: "82450442ba7c433297a76ca97409a4f3",
        area: "北京"    //城市名
      },
      success: function (res) {
        console.log(res)
      }
    })


  </script>
</body>

</html>